<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"halma.gitee.io","root":"/","scheme":"Pisces","version":"7.7.2","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="通过对AMD驱动的仔细研究，发现之前人们在解决AMD显卡问题上出现了盲区，也可以说是思路被固定住了。这个盲区在于，人们没有完全理解FrameBuffer的机制，现在我提出一种新的解决思路和方案，可以灵活地运用FrameBuffer的参数，而不被FBName所制约。本文分为两个部分，第一部分介绍脱离FBName制约的显示器接口修正的方式；第二部分介绍FrameBuffer的参数的使用，达到调整显卡工">
<meta property="og:type" content="article">
<meta property="og:title" content="显示器接口修正及自定义FrameBuffer参数驱动黑苹果AMD显卡的新方式">
<meta property="og:url" content="https://halma.gitee.io/2020/4-9/index.html">
<meta property="og:site_name" content="左右流之的放逐岛">
<meta property="og:description" content="通过对AMD驱动的仔细研究，发现之前人们在解决AMD显卡问题上出现了盲区，也可以说是思路被固定住了。这个盲区在于，人们没有完全理解FrameBuffer的机制，现在我提出一种新的解决思路和方案，可以灵活地运用FrameBuffer的参数，而不被FBName所制约。本文分为两个部分，第一部分介绍脱离FBName制约的显示器接口修正的方式；第二部分介绍FrameBuffer的参数的使用，达到调整显卡工">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/oc.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/ssdt.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/duibi.jpg">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/mace.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/config.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/HEVC.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4-9/config2.png">
<meta property="article:published_time" content="2020-04-09T04:04:19.000Z">
<meta property="article:modified_time" content="2020-04-29T11:36:53.629Z">
<meta property="article:author" content="左右流之">
<meta property="article:tag" content="自定义FrameBuffer参数驱动">
<meta property="article:tag" content="左右流之">
<meta property="article:tag" content="黑苹果">
<meta property="article:tag" content="Vega56">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://halma.gitee.io/2020/4-9/oc.png">

<link rel="canonical" href="https://halma.gitee.io/2020/4-9/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>显示器接口修正及自定义FrameBuffer参数驱动黑苹果AMD显卡的新方式 | 左右流之的放逐岛</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">左右流之的放逐岛</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">黑苹果技术分享</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://halma.gitee.io/2020/4-9/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="左右流之">
      <meta itemprop="description" content="折腾不需要理由">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="左右流之的放逐岛">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          显示器接口修正及自定义FrameBuffer参数驱动黑苹果AMD显卡的新方式
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-04-09 12:04:19" itemprop="dateCreated datePublished" datetime="2020-04-09T12:04:19+08:00">2020-04-09</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-04-29 19:36:53" itemprop="dateModified" datetime="2020-04-29T19:36:53+08:00">2020-04-29</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Hackintosh/" itemprop="url" rel="index"><span itemprop="name">Hackintosh</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="fa fa-comment-o"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/2020/4-9/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/2020/4-9/" itemprop="commentCount"></span>
    </a>
  </span>
  
  
            <div class="post-description">通过对AMD驱动的仔细研究，发现之前人们在解决AMD显卡问题上出现了盲区，也可以说是思路被固定住了。这个盲区在于，人们没有完全理解FrameBuffer的机制，现在我提出一种新的解决思路和方案，可以灵活地运用FrameBuffer的参数，而不被FBName所制约。本文分为两个部分，第一部分介绍脱离FBName制约的显示器接口修正的方式；第二部分介绍FrameBuffer的参数的使用，达到调整显卡工作状态的目的。通过几个网友的测试，结果显示Vega显卡运行FCPX时火力全开，在这里特别感谢QQ好友Mace的大量测试工作。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>作者: 左右流之</p>
<p>通过对AMD驱动的仔细研究，发现之前人们在解决AMD显卡问题上出现了盲区，也可以说是思路被固定住了。这个盲区在于，人们没有完全理解FrameBuffer的机制，现在我提出一种新的解决思路和方案，可以灵活地运用FrameBuffer的参数，而不被FBName所制约。本文分为两个部分，第一部分介绍脱离FBName制约的显示器接口修正的方式；第二部分介绍FrameBuffer的参数的使用，达到调整显卡工作状态的目的。通过几个网友的测试，结果显示Vega显卡运行FCPX时火力全开，在这里特别感谢QQ好友Mace协助测试。</p>
<h1 id="一、显示接口修正的connectors方法"><a href="#一、显示接口修正的connectors方法" class="headerlink" title="一、显示接口修正的connectors方法"></a>一、显示接口修正的connectors方法</h1><p><strong><font color="#F39">如果你需要开核显并且必须用WateverGreen驱动，您可以跳过此节继续阅读。</font></strong><br>在对AMD10000等驱动的仔细阅读之后，发现和显示器相关的参数是 <code>connectors</code> ，黑果们说的给FBName打补丁其实是给connectors打补丁，概念上应该有些差池和误导。AMD驱动里指定了一些FBName，每个特定的FBName里面又定义了自己的connectors。系统驱动连接显示器主要就是通过connectors定义的数据，所以黑果大概率不能完全对应显示接口。</p>
<p>如果我们不指定FBName，就可以直接在设备属性中定义connectors，达到修正显示器接口的目的。这种方式类似于WhateverGreen.kext的做法，WhateverGreen.kext默认就不指定FBName，一旦指定FBName，就会有个别或全部显示接口无法正常工作。<br>简单地说，在设备属性中注入connectors，就不能指定FBName了。这似乎是个缺陷，但却是自由度很高的方法。</p>
<p>下面举例说明：<br>我们先准备好显卡的connectors数据（用ATI_FrameBuffers_Edition.php提取后修正）：</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="number">000400000403000000010101000000002205020200000000</span></span><br><span class="line"><span class="number">000400000403000000010201000000001204010100000000</span></span><br><span class="line"><span class="number">000400000403000000010300000000001000050500000000</span></span><br><span class="line"><span class="number">000800000402000000010400000000002001060600000000</span></span><br></pre></td></tr></table></figure>
<p>上面的数据是4个接口的，认为修正差不多了可以试验了。注意一定要从零号索引开始按照顺序写全接口。然后我们有两种方式把connectors注入到设备属性中。</p>
<ol>
<li><p>写入OpenCore的DeviceProperties项目中<br>就像下图这样：</p>
<img src="oc.png" width="80%" alt="点击放大">  
</li>
<li><p>写到显卡SSDT中<br>操作稍微麻烦一点，要把数据整理成字节的形式（你要是手动拆分我也无话可说）。然后写入SSDT中，编译完之后就是这样：</p>
<img src="ssdt.png" width="80%" alt="ssdt注入">  
图中绿色的字符是ASL编译后自动添加的注释。

</li>
</ol>
<p>再强调一遍，这种方式不能指定FBName。</p>
<p>需要特别说明，指定connectors的方式对Navi系列显卡不适用。通过查看AMDRadeonX6000Framebuffer驱动，初步得出的结论是，此系列显卡驱动直接读取显卡Bios的设置来进行显示器连接的。<br>由此本人对白苹果Vega显卡很短小的VBIOS有了进一步的认知，白苹果的Vega显卡Bios中的信息仅有有显卡版本信息、基本的config，剩下的字节都是用FF占位。白果显卡的显示器连接等一些列工作机制都是驱动里定义的，比如显示连接器。</p>
<p>使用connectors的意义是为了摆脱FBName的制约，如果你对如何获得connectors不是很清楚或者你打算偷懒，<strong>其实我们可以直接用<font color="#f93">WhateverGreen</font>来替代这部分工作</strong>。<br>就是说，点亮显示器是下一步工作的前提。</p>
<h1 id="二、自定义工作参数"><a href="#二、自定义工作参数" class="headerlink" title="二、自定义工作参数"></a>二、自定义工作参数</h1><p>通过对驱动的研究，现在知道了FBName包含aty_config、aty_properties和connectors这几个部分。这就是我们自定义工作参数的基础。connectors部分通过自己注入或者使用WhateverGreen来解决。<br>在AMD10000Controller驱动info.plist文件里，定义了aty_config、aty_properties两个集合，里面一项一项的参数就是默认配置。摆脱了FBName的制约之后，显卡驱动就使用默认配置了，工作效率会打折扣。<br>那么有没有办法提升工作效率呢？有，就是自定义参数。</p>
<h2 id="aty-config"><a href="#aty-config" class="headerlink" title="aty_config"></a>aty_config</h2><p>默认的aty_config的参数比较多，但不存在于FBName中。<br>以下几个参数是FBName使用的aty_config参数，在此特别提示出来。<br>CFG_NVV<br>CFG_PTPL2_TBL<br>CFG_PTPL2_CNT<br>CFG_PTPL2_MAX<br>CFG_PTPL2_MIN<br>CFG_TPS1S<br>CFG_USE_FBC</p>
<p>这里有一个特别的参数<font color="#F93">CFG_PTPL2_TBL</font>需要注意，它应该定义的是颜色转换信息，用错了会丢metal功能集并导致RGB三色错乱，你只能看到正常的黑白灰，其他颜色是错误的。查看2017年的iMacPro/Vega56使用的FBName是japura，就有CFG_PTPL2_TBL参数，猜测是为了对接苹果的某种显示器，咱没白果，只能猜猜。</p>
<h2 id="aty-properties"><a href="#aty-properties" class="headerlink" title="aty_properties"></a>aty_properties</h2><p>同样，下面列出所有FBName用到的的PP参数</p>
<table>
<thead>
<tr>
<th>PP参数</th>
<th>数据类型</th>
<th>参考数值</th>
</tr>
</thead>
<tbody><tr>
<td>PM_PWR_GEMINI_BGT</td>
<td>Number</td>
<td>400</td>
</tr>
<tr>
<td>Force_Load_FalconSMUFW</td>
<td>boolean</td>
<td>YES</td>
</tr>
<tr>
<td>PP_ACDCGpioDisabled</td>
<td>Number</td>
<td>0</td>
</tr>
<tr>
<td>PP_DiDtSQPatternWidthOverride</td>
<td>Number</td>
<td>14</td>
</tr>
<tr>
<td>PP_DiDtSQStallPatternOverride</td>
<td>Number</td>
<td>16383</td>
</tr>
<tr>
<td>PP_DisableDIDT</td>
<td>Number</td>
<td>0</td>
</tr>
<tr>
<td>PP_DisablePCCLimitControl</td>
<td>Numberr</td>
<td>1</td>
</tr>
<tr>
<td>PP_EnableUploadFirmware</td>
<td>Number</td>
<td>1</td>
</tr>
<tr>
<td>PP_FclkGfxClkRatio</td>
<td>Number</td>
<td>1036831949</td>
</tr>
<tr>
<td>PP_GfxOffControl</td>
<td>Number</td>
<td>0</td>
</tr>
<tr>
<td>PP_PhmUseDummyBackEnd</td>
<td>Number</td>
<td>0</td>
</tr>
<tr>
<td>PP_VG10TelemetrySlopOverWrite</td>
<td>Number</td>
<td>514</td>
</tr>
<tr>
<td>PP_WorkLoadPolicyMask</td>
<td>Number</td>
<td>1</td>
</tr>
</tbody></table>
<p>Enable/Disable为开关性质，参数就两个：0或者1<br>GfxOffControl这个参数，设置值为1时，为低功耗配置的FBName使用。<br>另外还可以加入PP_PhmSoftPowerPlayTable参数，来防治风扇暴走。QQ好友Mace 4月10日帮助测试了Vega显卡的风扇控制表，只需要设置风扇参数，可以不用超频。<br>这些的参数意义，有兴趣的可以自行研究，具体我也不是很明白，用就完了。</p>
<h2 id="比较"><a href="#比较" class="headerlink" title="比较"></a>比较</h2><p>我偷懒，直接抄袭了ATY,Japura 、ATY,Araguaia、ATY,Baudo 这三个FBName的配置参数并分别注入到设备属性中做对比。</p>
<img src="duibi.jpg" width="80%" alt="参数对比"> 
经过测试，初步的认知结论如下：

<table>
<thead>
<tr>
<th>FBName</th>
<th>GeekBench5跑分</th>
<th>FCPX相关</th>
<th>功耗及风扇控制</th>
</tr>
</thead>
<tbody><tr>
<td>ATY,Japura</td>
<td>4万7——5万4</td>
<td>8k导出 1分钟</td>
<td>低功耗 风扇控制良好</td>
</tr>
<tr>
<td>ATY,Araguaia</td>
<td>6万8——7万2</td>
<td>8k导出30秒，渲染和转码满载</td>
<td>高功耗 风扇启动后不能停止</td>
</tr>
<tr>
<td>ATY,Baudo</td>
<td>4万3</td>
<td>8k导出37秒，渲染和转码满载</td>
<td>低功耗 风扇控制较好</td>
</tr>
</tbody></table>
<p> @Mace 提供的测试截图<br><img src="mace.png" width="80%" alt="mace提供"> </p>
<p>对HEVC编码的测试见第四节</p>
<h2 id="注入方式"><a href="#注入方式" class="headerlink" title="注入方式"></a>注入方式</h2><p>注入方式同第一节。具体参数也可以自己去查阅/S/L/E/AMD10000Controller.kext驱动包里的info.plist文件。<br>附上我的一个配置截图<br><img src="config.png" width="80%" alt="OC配置"> </p>
<p>具体的调整还需要各位自行钻研。</p>
<h1 id="三、推论"><a href="#三、推论" class="headerlink" title="三、推论"></a>三、推论</h1><p>FrameBuffer参数我们可以自己定义，虽然没有了FBName名字，但是有实质。显示器的连接我们也可以自定义。这几乎就是天马行空了。<br>至此，得到如下推论：<br>如果你的显卡必须用WhateverGreen驱动来点亮屏幕，那么可以通过注入相关参数来达到使用FBNmae的效果。<br>进一步，我们可以以一种全新的思路来解决AMD显卡驱动的问题。<br>通过可用的connectors参数或WhateverGreen驱动来解决显示器连问题，绕过FBName的限制，然后注入FrameBuffer驱动参数提升显卡的工作效率。<br>额外的收获是不用对内核打补丁了。</p>
<hr>
<h1 id="四、验证"><a href="#四、验证" class="headerlink" title="四、验证"></a>四、验证</h1><p>按照现在这套思路，重新配置z370+8700k+vega56，火力全开，核显、独显、CPU都能很好滴参与工作，导出HEVC格式视频也令人满意。<br><img src="HEVC.png" width="80%" alt="导出8bit HEVC视频"><br>配合最新的1.3.8版的WhateverGreen驱动，这套方案完美解决了Z370的问题。<br>从图上看，Vega负责渲染，核显负责HEVC转码，CPU负责数据读写。<br>不需要什么FBName，也不需要什么EFIVersion。<br><img src="config2.png" width="80%" alt="OC config.plist配置示例"> </p>
<p><strong>吐槽</strong><br>关于GeekBench跑分软件，你真的不需要当真，娱乐娱乐就好了。真的的性能体现在运行FCPX等软件上。</p>
<p><strong>福利</strong><br><a href="AMD_FrameBuffers_10.15.4_Edition.php.zip">10.15.4 FrameBuffers提取脚本</a></p>
<p><strong>鸣谢</strong><br>QQ好友 Mace</p>
<p>原创文章，转载请注明出处和作者。</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E9%BB%91%E8%8B%B9%E6%9E%9C/" rel="tag"># 黑苹果</a>
              <a href="/tags/connectors/" rel="tag"># connectors</a>
              <a href="/tags/FBName/" rel="tag"># FBName</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/2020-4-2/" rel="prev" title="Asus z370-p_8700k_Vega56 安装苹果系统攻略">
      <i class="fa fa-chevron-left"></i> Asus z370-p_8700k_Vega56 安装苹果系统攻略
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/Sur%E4%B8%8B%E5%AE%89%E8%A3%853b1b%E6%95%B0%E5%AD%A6%E5%8A%A8%E7%94%BB%E5%BC%95%E6%93%8E/" rel="next" title="Big Sur下安装3b1b数学动画引擎">
      Big Sur下安装3b1b数学动画引擎 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#一、显示接口修正的connectors方法"><span class="nav-number">1.</span> <span class="nav-text">一、显示接口修正的connectors方法</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#二、自定义工作参数"><span class="nav-number">2.</span> <span class="nav-text">二、自定义工作参数</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#aty-config"><span class="nav-number">2.1.</span> <span class="nav-text">aty_config</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#aty-properties"><span class="nav-number">2.2.</span> <span class="nav-text">aty_properties</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#比较"><span class="nav-number">2.3.</span> <span class="nav-text">比较</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#注入方式"><span class="nav-number">2.4.</span> <span class="nav-text">注入方式</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#三、推论"><span class="nav-number">3.</span> <span class="nav-text">三、推论</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#四、验证"><span class="nav-number">4.</span> <span class="nav-text">四、验证</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="左右流之"
      src="/images/avatar.gif">
  <p class="site-author-name" itemprop="name">左右流之</p>
  <div class="site-description" itemprop="description">折腾不需要理由</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">9</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">11</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/halma/" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;halma&#x2F;" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:459197097@qq.com" title="E-Mail → mailto:459197097@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2025</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">左右流之</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  













<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'forest',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'pj8AT7zpJyISRPiNehTuH3SM-gzGzoHsz',
      appKey     : 'A1fvdQLU97x0GozkPIR0KHDW',
      placeholder: "说点什么？",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
